package com.ruoyi.project.system.lotto.service;

import com.ruoyi.project.system.lotto.domain.ResObject;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import com.ruoyi.project.system.lotto.domain.RewardsExample;
import com.ruoyi.project.system.lotto.mapper.RewardsMapper;
import com.ruoyi.project.system.lotto.domain.Rewards;
@Service
public class RewardsService{

    @Resource
    private RewardsMapper rewardsMapper;

    
    public long countByExample(RewardsExample example) {
        return rewardsMapper.countByExample(example);
    }

    
    public int deleteByExample(RewardsExample example) {
        return rewardsMapper.deleteByExample(example);
    }

    
    public int deleteByPrimaryKey(Long id) {
        return rewardsMapper.deleteByPrimaryKey(id);
    }

    
    public int insert(Rewards record) {
        return rewardsMapper.insert(record);
    }

    
    public int insertSelective(Rewards record) {
        return rewardsMapper.insertSelective(record);
    }

    
    public List<Rewards> selectByExample(RewardsExample example) {
        return rewardsMapper.selectByExample(example);
    }

    
    public Rewards selectByPrimaryKey(Long id) {
        return rewardsMapper.selectByPrimaryKey(id);
    }

    
    public int updateByExampleSelective(Rewards record,RewardsExample example) {
        return rewardsMapper.updateByExampleSelective(record,example);
    }

    
    public int updateByExample(Rewards record,RewardsExample example) {
        return rewardsMapper.updateByExample(record,example);
    }

    
    public int updateByPrimaryKeySelective(Rewards record) {
        return rewardsMapper.updateByPrimaryKeySelective(record);
    }

    
    public int updateByPrimaryKey(Rewards record) {
        return rewardsMapper.updateByPrimaryKey(record);
    }

    /**
     * 获取所有奖品
     * @return
     */
    public List<Rewards> getList() {
        return rewardsMapper.getList();
    }
}
